package com.hp.siminterface.webservice.impl;

import java.util.List;

import com.hp.siminterface.domain.HPUXSoftwareBundle;
import com.hp.siminterface.persistence.HPUXSoftwareBundleMapper;
import com.hp.siminterface.webservice.HPUXSoftwareBundleService;

public class HPUXSoftwareBundleServiceImpl implements HPUXSoftwareBundleService {
	private HPUXSoftwareBundleMapper hpuxSoftwareBundleMapper;

	@Override
	public HPUXSoftwareBundle[] getHPUXSoftwareBundle() {
		List<HPUXSoftwareBundle> hpuxSoftwareBundles = hpuxSoftwareBundleMapper
				.selectHPUXSoftwareBundle();
		HPUXSoftwareBundle[] hpuxSoftwareBundleArray = new HPUXSoftwareBundle[hpuxSoftwareBundles
				.size()];
		int i = 0;
		for (HPUXSoftwareBundle hpuxSoftwareBundle : hpuxSoftwareBundles) {
			hpuxSoftwareBundleArray[i] = hpuxSoftwareBundle;
			i++;
		}
		return hpuxSoftwareBundleArray;
	}

	public void setHpuxSoftwareBundleMapper(
			HPUXSoftwareBundleMapper hpuxSoftwareBundleMapper) {
		this.hpuxSoftwareBundleMapper = hpuxSoftwareBundleMapper;
	}

}
